package com.example.takeaway.model.bo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.takeaway.model.bo.BaseBO;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 订单地址表
 * </p>
 *
 * @author 邢晨旭
 * @since 2023-10-12
 */
@Getter
@Setter
@TableName("order_address")
public class OrderAddress extends BaseBO {

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 订单ID（关联`order`表）
     */
    @TableField("order_id")
    private Long orderId;

    /**
     * 收货人名字
     */
    @TableField("recipient_name")
    private String recipientName;

    /**
     * 收货人手机号
     */
    @TableField("recipient_phone")
    private String recipientPhone;

    /**
     * 收货地址
     */
    @TableField("delivery_address")
    private String deliveryAddress;
}
